@import '../../styles/theme.less';

.layout {
  min-height: 100vh;
}

.mainLayout {
  padding-top: 64px;
  min-height: 100vh;
  background: #f0f2f5;
}

.content {
  padding: 24px;
  background: #f0f2f5;
  min-height: calc(100vh - 64px);
}

.breadcrumb {
  margin-bottom: 16px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  
  :global(.ant-breadcrumb) {
    font-size: 14px;
    padding: 0 24px;
    
    a {
      color: #1890ff;
      
      &:hover {
        color: #40a9ff;
      }
    }
  }
}

.searchCard {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);

  :global(.ant-card-body) {
    padding: 24px;
  }
}

.tableCard {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);

  :global(.ant-card-body) {
    padding: 0 24px 24px;
  }
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 24px;

  .searchSection {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .statistics {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin-top: 8px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    
    :global(.ant-tag) {
      margin-right: 0;
      padding: 6px 16px;
      font-size: 14px;
    }
  }
}

// 表格样式优化
:global {
  .ant-table-wrapper {
    .ant-table {
      border-radius: 8px 8px 0 0;
    }

    .ant-table-thead > tr > th {
      background: #fafafa;
      font-weight: 600;
      padding: 16px;
    }

    .ant-table-tbody > tr > td {
      padding: 16px;
    }

    .ant-table-row {
      &:hover {
        td {
          background: #f5f5f5;
        }
      }
    }

    .ant-table-pagination {
      margin: 24px 0 0;
      padding: 0;
      background: #fff;
      border-radius: 0 0 8px 8px;
    }
  }

  .ant-tag {
    border-radius: 4px;
  }

  .ant-select-selector,
  .ant-picker,
  .ant-input-affix-wrapper {
    border-radius: 4px !important;
  }
}

// 响应式布局
@media screen and (max-width: 768px) {
  .content {
    padding: 16px;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    
    .statistics {
      width: 100%;
      justify-content: flex-start;
      margin-top: 8px;
    }
  }
}

.announcementCard {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
  